import { request } from '../utils/request.js';
// 获取Department列表
export const getDepartmentListAPI = (data:any) => {
  return request.get('/Department/GetList', {
    params: data,
  });
};

// 添加Department
export const addDepartmentAPI = (data:any) => {
  return request.post('/Department/AddDepartment', data);
};

// 修改Department
export const editDepartmentAPI = (data:any) => {
  return request.post('/Department/EditDepartment', data);
};

// 删除Department
export const delDepartmentAPI = (data:any) => {
  return request.delete(`/Department/DeleteDepartment/${data}`);
};

// 删除多个Department
export const delDepartmentsAPI = (data:any) => {
  return request.delete(`/Department/DeleteDepartments`, { data }); 
}
